var o=(u,e,r)=>new Promise((c,l)=>{var d=t=>{try{n(r.next(t))}catch(a){l(a)}},i=t=>{try{n(r.throw(t))}catch(a){l(a)}},n=t=>t.done?c(t.value):Promise.resolve(t.value).then(d,i);n((r=r.apply(u,e)).next())});import{d3 as p,as as D,cL as E}from"./index-68beeb37.js";import{SysEventAttr as s}from"./SysEvent-a3d35760.js";class A extends p{constructor(e){super("TS.Sys.SysEventEventBase"),e&&(this.MyPK=e)}get HisUAC(){const e=new D;return e.IsDelete=!0,e.IsUpdate=!0,e.IsInsert=!0,e}get EnMap(){const e=new E("Sys_FrmEvent","事件基类");e.AddMyPK(),e.AddTBString(s.RefPKVal,null,"关键值",!1,!1,0,100,10),e.AddTBString(s.EventDoType,null,"执行标记",!1,!1,0,100,100),e.AddTBString(s.EventDoTypeT,null,"执行标记",!0,!0,0,100,100);const r=`
    #### 帮助
    - 请填写SQL或者存储过程
    - 支持ccbpm表达式.
    #### SQL的demo.
    - 支持ccbpm表达式.
    - UPDATE MyTable SET XXX='@QingJiaTianshu', DoWorkerID='@WebUser.No', 
        DoWorkerName='@WebUser.Name', DoWorkerDept='@WebUser.DeptNo',
       WHERE xxxx=@WorkID
    #### 存储过程DEMO
    - @yln 完善.
    - 执行的结果返回string类型的数据，如果
    `;return e.AddTBStringDoc(s.DoDoc,null,"事件基类",!0,!1,!0,r),e.AddTBAtParas(4e3),this._enMap=e,this._enMap}beforeInsert(){return o(this,null,function*(){return!0})}beforeUpdateInsertAction(){return o(this,null,function*(){return!0})}}export{A as SysEventEventBase};
